package com.tutucms.repo.mapper;

import com.tutucms.repo.TuMapper;
import com.tutucms.repo.entity.Article;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ArticleMapper extends TuMapper<Article> {

    List<Article> getArticleByCatalogId(Long catalog_id);

    Article getNextSortArticle(@Param("currentId") Long currentId);

    Article getBeforeSortArticle(@Param("currentId") Long currentId);
}